package com.acme.bankapp.domain.bank;


public class Client 
{	
	private String name;


	public String getName() {
		return name;
	}

	private Gender gender;
	
	public String getClientSalutation() {
//		if (gender == Gender.MALE)
//		{
//			return "Mr. "+name;
//		}
//		else
//		{
//			return "Mrs. "+name;
//		}
		return gender.toString()+name;
	}
	
	private Account account;

	public Account getAccount() {
		return account;
	}

	public Client(String name, Gender gender, Account account) {
		this.name = name;
		this.gender = gender;
		this.account = account;
	}	
	
}
